<template>
  <div class="totalcount">
    <span class="collentitems" v-for="item in col" :key="item.id">
      <span v-if="item.id == 2">{{item.name}}：{{mon[item.id - 2]}} 元 </span>
      <span v-if="item.id == 3">{{item.name}}：{{mon[item.id - 2]}} 元 </span>
      <span v-if="item.id == 4">{{item.name}}：{{mon[item.id - 2]}} 元</span>
    </span>
  </div>
</template>

<script>
export default {
  name: "TotalCount",
  props: {
    tableData: Array,
    col: Array,
    mon: Array,
  },
};
</script>

<style>
.totalcount {
  width: 100%;
  height: 50px;
  background: rgb(239, 240, 239);
  box-sizing: border-box;
  text-align: center;
  line-height: 50px;
}
.collentitems {
  display: inline-block;
  widows: 50px;
  height: 30px;
  margin: 0px 20px;
  box-sizing: border-box;
  color: rgb(115,112,112);
  font-size: 18px;
  font-weight: 700;
}
</style>